//
//  ClassUtils.swift
//  SwiftLibrary
//
//  Created by xicheng on 16/3/5.
//  Copyright © 2016年 taurusxi. All rights reserved.
//

import UIKit

class ClassUtils {

  class func instanceClass<T>(clazz: T?, block: ((T) -> Void)? = nil) {

    guard let instance = clazz else {
      return
    }

    if let b = block {
      b(instance)
    }
  }
}
